package LessonPlans.Tasks
{
	public class Task
	{
		private var _name:String;
		private var _description:String;
		private var _response:String;
		
		/**
		 * @param name The Task Name
		 * @param description The Description of the Task. i.e. breakdown of task
		 * @param response The response/solution to the task
		 */
		public function Task(name:String,description:String="",response:String="")
		{
			this._name = name;
			this._description = description;
			this._response = response;
		}
		
		public function set response(resp:String):void
		{
			this._response = resp;
		}
		
		public function get completed():Boolean
		{
			return _response==null?false:true;
		}
		
		public function get name():String
		{
			return _name;
		}
		public function get description():String
		{
			return _description;
		}
		public function get response():String
		{
			return _response;
		}
		
		public function toString():String
		{
			return "Name: "+_name+" description: "+_description+" response: "+_response;
		}
	}
}